package web.dropwizard.configuration;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author Gregory Boissinot
 */
public class JenkinsConfig {

    @JsonProperty(required = true)
    @NotEmpty
    private String url;

    @JsonProperty(required = false)
    private String username;

    @JsonProperty(required = false)
    private String password;

    @JsonProperty(required = true)
    @NotEmpty
    private String rootTemplateDir;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRootTemplateDir() {
        return rootTemplateDir;
    }

    public void setRootTemplateDir(String rootTemplateDir) {
        this.rootTemplateDir = rootTemplateDir;
    }
}
